package nodes

import (
	"gitee.com/zfd81/dbrs/sql"
	"vitess.io/vitess/go/sqltypes"
)

// ShowTables is a node that shows the database tables.
type ShowStatus struct {
}

func NewShowStatus() *ShowStatus {
	return &ShowStatus{}
}

// Resolved implements the Resolvable interface.
func (p *ShowStatus) Resolved() bool {
	return false
}

// Schema implements the Node interface.
func (p *ShowStatus) Schema() sql.Schema {
	return sql.Schema{
		{Name: "Variable_name", Type: sqltypes.Text, Nullable: false},
		{Name: "Value", Type: sqltypes.Text},
		{Name: "Comment", Type: sqltypes.Text},
	}
}

func (p ShowStatus) String() string {
	return "ShowStatus"
}
